x11: Use async queue and implement sync reads on selections stream
authorBenjamin Otte <otte@redhat.com>
Mon, 20 Nov 2017 20:29:32 +0000 (21:29 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 3 Dec 2017 04:43:24 +0000 (05:43 +0100)
commit516f35b86500e139b9c17e17a12d1b492beca677
tree080494f6bbb07111b5c6dc82a58de605ae802885
parent3506ae6085a5abbc2614a8518fc457c8801e6eb4
x11: Use async queue and implement sync reads on selections stream

Turns out, way too many async operations are implemented by running the
sync operation in a thread. The easiest solution is to support that is
to use a GAsyncQueue for the buffers and deadlock if called from the
main thread.
gdk/x11/gdkselectioninputstream-x11.c